<?php

///Donor Status

function getDonorStatus($index)
{
    switch($index)
    {
        case 1: return "Prospective";
                break;
        case 2: return "Donated";
                break;
        case 3: return "Uninterested";
                break;
        case 4: return "Unknown";
                break;
        case 5: return "Confirmed";
                break;
       default: return "No Status";
            
    }
}

function getDonorIndex($name)
{
    switch($name)
    {
        case "Prospective": return 1;
                break;
        case "Donated": return 2;
                break;
        case "Uninterested": return 3;
                break;
        case "Unknown": return 4;
                break;
        case "Confirmed": return 5;
                break;
       default: return -1;            
    }
}

////End Donor Status


///ReminderRepeat 

function getReminderRepeatName($index)
{
    switch($index)
    {
        case 1: return "None";
                break;
        case 2: return "Week";
                break;
        case 3: return "Month";
                break;
        case 4: return "Year";
                break;
        
       default: return "Not Defined";            
    }
}

function getReminderRepeatIndex($name)
{
    switch($name)
    {
        case "None": return 1;
                break;
        case "Week": return 2;
                break;
        case "Month": return 3;
                break;
        case "Year": return 4;
                break;
        
       default: return -1;            
    }
}
///End ReminderRepeat

//Reminder Status

function getReminderStatusName($index)
{
    switch($index)
    {
        case 1: return "None";
                break;
        case 2: return "Opened";
                break;
        case 3: return "Completed";
                break;
        
        
       default: return "Not Defined";            
    }
}

function getReminderStatusIndex($name)
{
    switch($name)
    {
        case "None": return 1;
                break;
        case "Opened": return 2;
                break;
        case "Completed": return 3;
                break;
        
       default: return -1;            
    }
}

///End Reminder Status


///Reminder Priority



function getReminderPriorityName($index)
{
    switch($index)
    {
        case 1: return "None";
                break;
        case 2: return "Low";
                break;
        case 3: return "Medium";
                break;
        case 4: return "High";
                break;
        case 5: return "Urgent";
                break;
       default: return "Not Defined";            
    }
}

function getReminderPriorityIndex($name)
{
    switch($name)
    {
        case "None": return 1;
                break;
        case "Low": return 2;
                break;
        case "Medium": return 3;
                break;
        case "High": return 4;
                break;
        case "Urgent": return 5;
                break;
        
       default: return -1;
            
    }
}

///End ReminderPriority


///Admin type

function getAdminName($index)
{
    switch($index)
    {
        case 0: return "No";
                break;
        case 1: return "Yes";
                break;
       
       default: return "Not Defined";
            
    }
}

function getAdminIndex($name)
{
    switch($name)
    {
        case "No": return 0;
                break;
        case "Yes": return 1;
                break;
        
       default: return -1;
            
    }
}
//
///Reminder type

function getReminderName($index)
{
    switch($index)
    {
        case 1: return "Donor";
                break;
        case 2: return "Donation";
                break;
        case 3: return "Communication";
                break;

       default: return "Not Defined";

    }
}

function getReminderIndex($name)
{
    switch($name)
    {
        case "Donor": return 1;
                break;
        case "Donation": return 2;
                break;
        case "Communication": return 3;
                break;
       default: return -1;

    }
}


?>
